home *** CD-ROM | disk | FTP | other *** search
- Path: upsnews.ups.com!newsadm
- From: Jin Yang <air1jxy@orhp.air.ups.com>
- Newsgroups: comp.lang.c++,comp.sys.hp.hpux
- Subject: Problem on using STL
- Date: 6 Feb 1996 21:00:44 GMT
- Organization: United Parcel Service Airline
- Message-ID: <4f8fht$t21@upsnews.ups.com>
- NNTP-Posting-Host: 153.2.131.26
- Mime-Version: 1.0
- Content-Type: text/plain; charset=us-ascii
- Content-Transfer-Encoding: 7bit
- X-Mailer: Mozilla 1.1 (X11; U; HP-UX A.09.05 9000/735)
- X-URL: news:comp.lang.c++/94652-94752
-
- We have a CFront 3.01 based C++ compiler (on HPUX). When we try to use
- STL, we get compiler error. For example, the following simple code:
-
- #include <algo.h>
- #include <vector.h>
-
- int main()
- {
- vector<int> v;
- return 0;
- }
-
- will generate error like:
-
- CC: "../include/function.h", line 130: error: template unary_function argument
- mismatch, the template formal: Arg required a type actual parameter (1782)
-
- Our compiler version is:
-
- REV: 950207.141700, 9000/715 HP-UX A.09.03 masonbld@hpmason1
- Can anyone out there offer us help on this. Thanks in advance.
-
- Jin Yang
- air1jxy@orhp.air.ups.com
-
-